<template>
    <div v-if="qyjn">
        <mcMainIndex></mcMainIndex>
    </div>
    <div v-else>
        <mcMainIndex2></mcMainIndex2>
    </div>
</template>

<script>
import mcMainIndex from '../qyjn/mcMainIndex.vue'
import mcMainIndex2 from './mcMainIndex2.vue'
export default {
    name: 'warnCenter',
    components: {mcMainIndex, mcMainIndex2},
    data() {
        return {
            qyjn: false
        }
    },
    created() {
        const childSys = sessionStorage.getItem('childSys')
        const sysName = JSON.parse(childSys).sys_code
        this.qyjn = sysName == '全域节能协同管理系统'
    },
    mounted() {},
    destroyed() {},
    methods: {}
}
</script>

<style scoped>
</style>
